<?php
$moduleName   = $invokeParams['moduleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['moduleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['moduleName']);
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['moduleName']}/".WacControlTableType::$moduleForm.".js\">";
echo "</script>";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol">
        <h3>
        <?php
        echo $invokeParams['caption'];
        ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">编号</div>
                <div class="wacFormItemRight">
                    <input name="code" id="<?php echo $moduleName ?>_code" type="text" class="validate[required,custom[noSpecialCaracters]] wacFormText DataTD ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">生产单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName ?>_production_order_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">供应商</div>
                <div class="wacFormItemRight">
                    <select name="supplier_id" id="<?php echo $moduleName ?>_supplier_id" style="width: 195px">
                        <option></option>
                    </select>
               </div>
               <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">发往工厂</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName ?>_factory_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">货物单位</div>
                <div class="wacFormItemRight">
                    <select name="goods_amount_unit_code" id="<?php echo $moduleName ?>_goods_amount_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
    </div>
</div>
    <div class="wacFormSecondCol">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">开始日</div>
                <div class="wacFormItemRight">
                    <input name="start_date" id="<?php echo $moduleName ?>_start_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">起货日</div>
                <div class="wacFormItemRight">
                    <input name="delivery_date" id="<?php echo $moduleName ?>_delivery_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">&nbsp;</div>
                <div class="wacFormItemRight">
                    &nbsp;
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">&nbsp;</div>
                <div class="wacFormItemRight">
                    &nbsp;
                </div>
                <div class="wacFormClear"></div>
            </div>

        </div>

    </div>
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">

        <hr class="wacFormRuler" style="width:700px; float:inherit;" />
            <div class="wacFormRow">
                <div class="wacFormItemLeft">备注</div>
                <div class="wacFormItemRight">
                    <textarea name="memo" id="<?php echo $moduleName ?>_memo" class="ui-widget-content ui-corner-all" cols="78" rows="4"></textarea></div>
                <div class="wacFormClear"></div>
            </div>
   <div class="wacFormClear"></div>
      <input name="btnSubmit" id="<?php echo $moduleName ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
      &nbsp;&nbsp;
      <input name="btnClose" id="<?php echo $moduleName ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $moduleName ?>_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>